﻿/*
This class implements the analysis of the button combinations
in order to determine whether a gamer has won or not
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace AndrewTicTacToe
{

    class GameEngine
    {
        // To check for winners use this.
        //Winning combinations array:
   
            //Winning combinations
            //    {0,1,2},{3,4,5},{6,7,8},{0,3,6},{1,4,7},{2,5,8},{0,4,8},{2,4,6}
            

        static void checkIfButtonHasAlreadyBeenPressed()
        {
            //if (button0Pressed == true && button1Pressed == true && button2Pressed == true)
            //    System.Diagnostics.Debug.WriteLine("Winner");

            //if (button3Pressed == true && button4Pressed == true && button5Pressed == true)
            //    System.Diagnostics.Debug.WriteLine("Winner");

            //if (button6Pressed == true && button7Pressed == true && button8Pressed == true)
            //    System.Diagnostics.Debug.WriteLine("Winner");

            //if (button0Pressed == true && button3Pressed == true && button6Pressed == true)
            //    System.Diagnostics.Debug.WriteLine("Winner");

            //if (button1Pressed == true && button4Pressed == true && button7Pressed == true)
            //    System.Diagnostics.Debug.WriteLine("Winner");

            //if (button2Pressed == true && button5Pressed == true && button8Pressed == true)
            //    System.Diagnostics.Debug.WriteLine("Winner");

            //if (button0Pressed == true && button4Pressed == true && button8Pressed == true)
            //    System.Diagnostics.Debug.WriteLine("Winner");

            //if (button2Pressed == true && button4Pressed == true && button6Pressed == true)
            //    System.Diagnostics.Debug.WriteLine("Winner");
        }

    }
}
